
//挂号信息模型
const db = require('./index');
const Schema = db.Schema;

const RegistrationinformationSchema = new Schema({
    orderid:String,//订单ID
    paystate: { type: Number},//支付状态  1:待收费    2:已收费   3:已退费
    receptiontime: String,//接诊时间
    receptionstate: { type: Number },//接诊状态  1  待分诊   2：待接诊   3：接诊中   4：已完成
    receptiontype: { type: Number },//接诊类型   0:初诊   1:复诊
    department: { type: {} },//科室
    doctor: { type: {} },//医生
    registerpeople: { type: {} },//登记人员
    registrationlv: { type: {} },//挂号等级
    registrationmoney: { type: Number },//挂号费用
    payer: { type: String },//付款人

    cureorder:{ type: {} },//治疗订单数组
    //id:订单ID
    //state:订单状态  支付状态 1:待收费    2:已收费   3:已退费
});
const Registrationinformation = db.model('Registrationinfor', RegistrationinformationSchema);
module.exports = Registrationinformation;